main = """\
#! /usr/bin/env python

from simpleweb import run
run('fcgi')
"""

config = """\
from simpleweb import *
from simpleweb.plugins import dblayer, template, auth


#db_plugin = dblayer.SqlObjectDB('mysql://username:password@hostname:port/databasename?parameters?cache=False')
#db_plugin = dblayer.SqlAlchemyDB('mysql://username:password@hostname:port/databasename?parameters?debug=True')
#auth_plugin = auth.SimpleAuth()
template_plugin = template.Cheetah()

enable_debug = False
enable_sessions = False

server_port = 8080
server_host = '127.0.0.1'
server_reload = True
#server_user = 'nobody'
#server_group = 'nobody'


#add other variables here. They will be 
#accessible when you 'import config'
#in your controllers

title = '$projectname'
#myvar = 'value'
"""

urls = """\
from simpleweb import urladd

urladd('/', 'controllers.index')
#urladd('/blog[/[{id:number}[/]]]', 'blogapplication.main')
"""

models= """\
import config
#from sqlobject import *
#from sqlalchemy import *
"""

index = """\
import config
import models

def GET(request):
	return config.template_plugin.render('index.html')
"""
